package com.aios.action.user.system;

public class SystemUserDeleteAction extends AbstractSystemUserAction {
	
	private static final long serialVersionUID = 1L;
	int val=0;
	
	public String execute() {
		
		if(id!=null) {
			try {
				val = systemUserService.SystemUserDelete(id);
			} catch(Exception e) {
				e.printStackTrace();
				addActionError(getText("global.error.delete"));
				return ERROR;
			}
		}
		else {
			addActionError(getText("global.error.delete"));
			return ERROR;
		}
		addActionError(getText("global.success.delete"));
		return SUCCESS;
	}
	
}
